home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8552 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.lang.pascal.misc,comp.lang.c++,comp.lang.c,comp.lang.pascal.borland
  2. Path: cwi.nl!dik
  3. From: dik@cwi.nl (Dik T. Winter)
  4. Subject: Re: Tough FACTORIAL math problem...
  5. Message-ID: <DMw7sC.Czw@cwi.nl>
  6. Sender: news@cwi.nl (The Daily Dross)
  7. Nntp-Posting-Host: chrysant.cwi.nl
  8. Organization: CWI, Amsterdam
  9. References: <31224679.6193@born.com> <4g00u6$gkk@sun001.spd.dsccc.com> <DMvKp5.2wL@undergrad.math.uwaterloo.ca>
  10. Date: Fri, 16 Feb 1996 23:55:24 GMT
  11.  
  12. In article <DMvKp5.2wL@undergrad.math.uwaterloo.ca> clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves) writes:
  13. [snipped]
  14.  
  15. This is getting silly.  For a correct routine see my article with
  16. message-id <DMtsB9.BBz@cwi.nl>, posted Feb 15.
  17.  
  18. If you wish to try, below follows a table with the last non-zero digits of
  19. all factorials upto (and including) 1000!.  Check your output with this
  20. table.
  21.  
  22. dik
  23. --
  24. 12642242888682886824484644846886822242822428662642
  25. 24284484666264662648868244846886822242822428662644
  26. 48468868222428224286626488682662644484644846224282
  27. 24284484666264662648868266264224288868288682448462
  28. 24284484666264662648868222428448466626466264886828
  29. 86826626444846448462242822428448466626466264886826
  30. 62642242888682886824484622428448466626466264886822
  31. 24284484666264662648868222428448466626466264886828
  32. 86826626444846448462242844846886822242822428662648
  33. 86826626444846448462242888682662644484644846224284
  34. 48468868222428224286626466264224288868288682448468
  35. 86826626444846448462242866264224288868288682448466
  36. 62642242888682886824484666264224288868288682448464
  37. 48468868222428224286626422428448466626466264886824
  38. 48468868222428224286626444846886822242822428662648
  39. 86826626444846448462242822428448466626466264886826
  40. 62642242888682886824484622428448466626466264886822
  41. 24284484666264662648868288682662644484644846224282
  42. 24284484666264662648868266264224288868288682448462
  43. 24284484666264662648868222428448466626466264886822
  44. -- 
  45. dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland, +31205924098
  46. home: bovenover 215, 1025 jn  amsterdam, nederland; http://www.cwi.nl/~dik/
  47.